* font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
authorJan D. <jan.h.d@swipnet.se>
Tue, 22 Jun 2010 06:42:00 +0000 (08:42 +0200)
committerJan D. <jan.h.d@swipnet.se>
Tue, 22 Jun 2010 06:42:00 +0000 (08:42 +0200)
src/ChangeLog
src/font.c

index e5f62c9b760e26b419d4c1981736370cb7837961..ea7b05339df560a24b2c64a7a7a122dc630b802c 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-22  Keith Packard <keithp@keithp.com> (tiny change)
+
+       * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
+
 2010-06-20  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (try_scrolling): When scroll-conservatively is set to
index e07dbc5dd166aa7329d4dedd5109ac51ec201616..f9c2381fa704ae99b09782d735cea21b14d7a25e 100644 (file)
@@ -1544,7 +1544,7 @@ font_parse_fcname (name, font)
              int size_found = 1;
 
              for (q = p + 1; *q && *q != ' '; q++)
-               if (! isdigit (*q))
+               if (! isdigit (*q) && *q != '.')
                  {
                    size_found = 0;
                    break;